package com.brainhealth.customer.mapper;

import java.util.List;

import com.brainhealth.customer.domain.SysUserEventBuriedPoint;
import com.brainhealth.customer.domain.SysUserEventBuriedPointResult;
import com.brainhealth.customer.domain.UserEventBuriedPointQueryParam;
import com.brainhealth.customer.domain.vo.UserOnlineFrequencyDetail;
import com.brainhealth.customer.domain.vo.UserOnlineFrequencyVO;
import com.brainhealth.customer.domain.vo.UserOnlineTimeDetail;
import com.brainhealth.customer.domain.vo.UserOnlineTimeVO;

/**
 * 用户事件埋点结果Mapper接口
 * 
 * @author ruoyi
 * @date 2023-08-03
 */
public interface SysUserEventBuriedPointResultMapper 
{
    /**
     * 查询用户事件埋点结果
     * 
     * @param id 用户事件埋点结果主键
     * @return 用户事件埋点结果
     */
    public SysUserEventBuriedPointResult selectSysUserEventBuriedPointResultById(Long id);

    /**
     * 查询用户事件埋点结果列表
     * 
     * @param sysUserEventBuriedPointResult 用户事件埋点结果
     * @return 用户事件埋点结果集合
     */
    public List<SysUserEventBuriedPointResult> selectSysUserEventBuriedPointResultList(SysUserEventBuriedPointResult sysUserEventBuriedPointResult);

    /**
     * 查询用户事件埋点记录列表
     *
     * @param sysUserEventBuriedPointResult 用户事件埋点记录
     * @return 用户事件埋点记录集合
     */
    public List<Long> selectCustomerIdList(SysUserEventBuriedPointResult sysUserEventBuriedPointResult);

    /**
     *
     * @param userEventBuriedPointQueryParam
     * @return
     */
    public UserOnlineTimeVO getUserOnlineTimeSum(UserEventBuriedPointQueryParam userEventBuriedPointQueryParam);

    /**
     * 获取用户在线时长
     *
     * @param userEventBuriedPointQueryParam 用户事件埋点结果
     * @return 用户事件埋点结果集合
     */
    public List<UserOnlineTimeDetail> getUserOnlineTime(UserEventBuriedPointQueryParam userEventBuriedPointQueryParam);

    /**
     * 获取用户在线时长(状态)
     * @param userEventBuriedPointQueryParam
     * @return
     */
    public List<UserOnlineTimeDetail> getUserOnlineTimeStatus(UserEventBuriedPointQueryParam userEventBuriedPointQueryParam);

    /**
     *
     * @param userEventBuriedPointQueryParam
     * @return
     */
    public UserOnlineFrequencyVO getUserFrequencyTimeSum(UserEventBuriedPointQueryParam userEventBuriedPointQueryParam);

    /**
     *
     * @param userEventBuriedPointQueryParam
     * @return
     */
    public List<UserOnlineFrequencyDetail> getUserFrequencyTime(UserEventBuriedPointQueryParam userEventBuriedPointQueryParam);

    /**
     * 新增用户事件埋点结果
     * 
     * @param sysUserEventBuriedPointResult 用户事件埋点结果
     * @return 结果
     */
    public int insertSysUserEventBuriedPointResult(SysUserEventBuriedPointResult sysUserEventBuriedPointResult);

    /**
     * 批量新增用户事件埋点结果
     * @param sysUserEventBuriedPointResultList
     * @return
     */
    public int batchInsertSysUserEventBuriedPointResult(List<SysUserEventBuriedPointResult> sysUserEventBuriedPointResultList);

    /**
     * 修改用户事件埋点结果
     * 
     * @param sysUserEventBuriedPointResult 用户事件埋点结果
     * @return 结果
     */
    public int updateSysUserEventBuriedPointResult(SysUserEventBuriedPointResult sysUserEventBuriedPointResult);

    /**
     * 删除用户事件埋点结果
     * 
     * @param id 用户事件埋点结果主键
     * @return 结果
     */
    public int deleteSysUserEventBuriedPointResultById(Long id);

    /**
     * 批量删除用户事件埋点结果
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysUserEventBuriedPointResultByIds(Long[] ids);
}
